// store 仓库 存储
//引入 函数
import {createStore, applyMiddleware, combineReducers} from 'redux';
import thunk from 'redux-thunk';
import FansCountReducer from './reducers/FansCountReducer';
import CollCountReducer from './reducers/CollCountReducer'; 

//合并 reducer 函数   {fans: 0, coll: 0}
const reducer = combineReducers({
    fans: FansCountReducer,
    coll: CollCountReducer
})

//创建仓库对象
const store = createStore(reducer, applyMiddleware(thunk));

//暴露 store 对象
export default store;
